package com.bor.gb.db.repositories;

import com.bor.gb.db.domain.User;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Component;

import javax.annotation.Nonnull;


@Component
public interface UserRepository extends MongoRepository<User, String>, UserRepositoryCustom {

    User findByEmail(String email);

    User findById(String id);
}
